package com.guapi.model;

import java.util.List;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name="content")
public class Content {

	private Integer id;
	private List<Tag> tags;
	private String type;
	private String webUrl;
	private String apiUrl;

	public void setId(Integer id) {
		this.id = id;
	}

	@XmlAttribute(name="id")
	public Integer getId() {
		return id;
	}

	public void setTags(List<Tag> tags) {
		this.tags = tags;
	}

	@XmlElementWrapper(name="tagged-with")
	@XmlElement(name="tag")
	public List<Tag> getTags() {
		return tags;
	}

	public void setType(String type) {
		this.type = type;
	}

	@XmlAttribute(name="type")
	public String getType() {
		return type;
	}

	public String getWebUrl() {
		return webUrl;
	}

	@XmlAttribute(name="web-url")
	public void setWebUrl(String webUrl) {
		this.webUrl = webUrl;
	}

	@XmlAttribute(name="api-url")
	public String getApiUrl() {
		return apiUrl;
	}

	public void setApiUrl(String apiUrl) {
		this.apiUrl = apiUrl;
	}

}
